package com.example.demob;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        setTitle("应用b");

        findViewById(R.id.btn_b1).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent();
                //intent.setAction("I_WANT_EAT");
               // intent.addCategory("NIO_ROU_FAN");


                intent.setClassName("com.example.demoa","com.example.demoa.StudentActivity");

                startActivity(intent);
            }
        });
    }
}
